Download the installation package for Windows from Download OpenCPN.
To install OpenCPN or Plugins it is necessary to make some changes to Windows 11 as follows:
There are four options in the dropdown menu:
Any of the above except for the (recommended) will allow installation. For most users the third option is probably the safest choice.